class StoreStatus(object):

    all = [1, 2, 3]

    IN_AUDIT = 1  # 审核中
    RUNNING = 2  # 店铺在运营
    PAUSED = 3  # 店铺没有在运营

class ImageForm(object):
    FROM_LOCAL = 1
    FROM_XXX = 2

class OrderStatus(object):
    all = [1, 2, 3]
    UN_PAY = 1  # 没有支付
    PAYED = 2  # 已经支付
    NO_PRODUCT = 3  # 支付了没有货


class ScopeNumber(object):
    all = [16, 32]
    USER = 16
    ADMIN = 32

def scope_map(type):
    type = str(type)
    _ = {'1': ScopeNumber.USER, '2': ScopeNumber.ADMIN}
    scope = _.get(type, None)
    if not scope:
        raise ValueError('scope_map type 不存在')
    return scope